import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/task/process_vetting_config_entity.dart';

ProcessVettingConfigEntity $ProcessVettingConfigEntityFromJson(Map<String, dynamic> json) {
  final ProcessVettingConfigEntity processVettingConfigEntity = ProcessVettingConfigEntity();
  final String? dictionaryTableId = jsonConvert.convert<String>(json['dictionaryTableId']);
  if (dictionaryTableId != null) {
    processVettingConfigEntity.dictionaryTableId = dictionaryTableId;
  }
  final String? dictionaryTableType = jsonConvert.convert<String>(json['dictionaryTableType']);
  if (dictionaryTableType != null) {
    processVettingConfigEntity.dictionaryTableType = dictionaryTableType;
  }
  return processVettingConfigEntity;
}

Map<String, dynamic> $ProcessVettingConfigEntityToJson(ProcessVettingConfigEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['dictionaryTableId'] = entity.dictionaryTableId;
  data['dictionaryTableType'] = entity.dictionaryTableType;
  return data;
}

extension ProcessVettingConfigEntityExtension on ProcessVettingConfigEntity {
  ProcessVettingConfigEntity copyWith({
    String? dictionaryTableId,
    String? dictionaryTableType,
  }) {
    return ProcessVettingConfigEntity()
      ..dictionaryTableId = dictionaryTableId ?? this.dictionaryTableId
      ..dictionaryTableType = dictionaryTableType ?? this.dictionaryTableType;
  }
}
